package com.s2015.doors.beans;

/**
 * 窗型型材
 * 
 * @author Guodeqi
 *
 */
public class Profile {
	private long id;
	//窗型型材 名称
	private String profileName;
	
	
	//与 材质，窗系列，窗型，型材系类的 多对一
	private MaterialType materialType;
	private WindowSeries windowSeries;
	private WindowType windowType;
	private ProfileSeries profileSeries;

	public Profile(){
		
	}

	public Profile(long id) {
		super();
		this.id = id;
	}

	public Profile(String profileName, MaterialType materialType,
			WindowSeries windowSeries, WindowType windowType,
			ProfileSeries profileSeries) {
		super();
		this.profileName = profileName;
		this.materialType = materialType;
		this.windowSeries = windowSeries;
		this.windowType = windowType;
		this.profileSeries = profileSeries;
	}
	
	public Profile(String profileName, Long materialTypeID,Long windowSeriesID,Long windowTypeID,Long profileSeriesID) {
		MaterialType materialType = new MaterialType(materialTypeID);
		WindowSeries windowSeries = new WindowSeries(windowSeriesID);
		WindowType windowType = new WindowType(windowTypeID);
		ProfileSeries profileSeries = new  ProfileSeries(profileSeriesID);
		this.profileName = profileName;
		this.materialType = materialType;
		this.windowSeries = windowSeries;
		this.windowType = windowType;
		this.profileSeries = profileSeries;
	}

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public String getProfileName() {
		return profileName;
	}

	public void setProfileName(String profileName) {
		this.profileName = profileName;
	}

	public MaterialType getMaterialType() {
		return materialType;
	}

	public void setMaterialType(MaterialType materialType) {
		this.materialType = materialType;
	}

	public WindowSeries getWindowSeries() {
		return windowSeries;
	}

	public void setWindowSeries(WindowSeries windowSeries) {
		this.windowSeries = windowSeries;
	}

	public WindowType getWindowType() {
		return windowType;
	}

	public void setWindowType(WindowType windowType) {
		this.windowType = windowType;
	}

	public ProfileSeries getProfileSeries() {
		return profileSeries;
	}

	public void setProfileSeries(ProfileSeries profileSeries) {
		this.profileSeries = profileSeries;
	}

	@Override
	public String toString() {
		return "Profile [id=" + id + ", profileName=" + profileName
				+ ", materialType=" + materialType + ", windowSeries="
				+ windowSeries + ", windowType=" + windowType
				+ ", profileSeries=" + profileSeries + "]";
	}
	
}
